<script>
$(function() {
	$("#Telephone").keypress(function(e){
		//alert(e);
		if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)){
			return false;
		}
	});
	$("#Birthday").datepicker({ dateFormat: 'dd/mm/yy',
				changeMonth: true,
				changeYear: true,
				yearRange:'c-35:c+1',
				showOn: "button",
				buttonImage: "images/Calendar.png",
				buttonImageOnly: true 
	});
	$("#Amount").keypress(function(e){
		
		if( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57)){
			return false;
		}
	});		
});
</script>
<div id="dialog-AddCust" class="dialog" >
	<p class="validateTipsCust">* fields are required.</p>
	<form>
	<table cellpadding="0" cellspacing="0" border="0" width="100%" class="fieldset">
		<tr>
			<td width="35%"><label for="name" >Code *</label></td>
			<td width="65%"><input type="text" name="Code"  id="Code" class="text ui-widget-content ui-corner-all" />
			</td>
		</tr>
		<tr >
			<td><label for="name" >Sex * </label></td>
			<td>
				<input type="radio" name="Sex" id="Sex_1" value="0" checked  />Female
				<input type="radio" name="Sex" id="Sex_2" value="1"   />Male
			</td>
		</tr>		
		<tr >
			<td><label for="name" >First Name * </label></td>
			<td><input type="text" name="FirstName"  id="FirstName" class="text ui-widget-content ui-corner-all" /></td>
		</tr>
		<tr >
			<td><label for="name" >Last Name * </label></td>
			<td><input type="text" name="LastName"  id="LastName" class="text ui-widget-content ui-corner-all" /></td>
		</tr>		
		<tr >
			<td ><label for="name" >Birth Day</label></td>
			<td ><input type="text" name="Birthday" size="20"  id="Birthday" value="" class="text ui-widget-content ui-corner-all" /></td>
		</tr>
		<tr>
			<td><label for="name" >Address *</label></td>
			<td><textarea id="Address" rows="3" cols="35" class="text ui-widget-content ui-corner-all" ></textarea></td>
		</tr>	
		<tr>
			<td><label for="name" >Email </label></td>
			<td><input type="text" name="Email" id="Email" value="" class="text ui-widget-content ui-corner-all" /></td>
		</tr>			
		<tr>
			<td><label for="name" >Telephone *</label></td>
			<td><input type="text" name="Telephone" id="Telephone" value="" class="text ui-widget-content ui-corner-all" /></td>
		</tr>		
		<tr>
			<td><label for="name" >Card No</label></td>
			<td><input type="text" name="CardID" id="CardID" value="" maxlength="20" class="text ui-widget-content ui-corner-all" /></td>
		</tr>	
		<tr>
			<td><label for="name" >Create date </label></td>
			<td><input type="text" name="CreatedDate" id="CreatedDate" readonly='true' disabled value="" class="text ui-widget-content ui-corner-all" /></td>
		</tr>	
	</table>
</form>
</div>